package com.pt5.pthouduan.service.impl;

import com.pt5.pthouduan.entity.PeerInfo;
import com.pt5.pthouduan.entity.User;
import com.pt5.pthouduan.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PeerService {
    @Autowired
    private UserMapper userMapper;

    public List<PeerInfo> getSeedersByInfoHash(String infoHash){
        return userMapper.findSeedersByInfoHash(infoHash);
    }

}
